#include "frame.h"

Frame::Frame(FrameType type)
  : mType(type)
{
}

void Frame::addVehicle(VehicleFrame* frame)
{
  mVehicles.append(frame);
}

void Frame::addTrafficControlFrame(TrafficControlFrame* frame)
{
  mTrafficControlFrames.append(frame);
}

Frame::FrameType Frame::type() const
{
  return mType;
}

Frame::VehicleList Frame::vehicles() const
{
  return mVehicles;
}

Frame::TrafficControlFrameList Frame::trafficControlFrames() const
{
  return mTrafficControlFrames;
}

